package com.hulk.dryad.manage.boot.launch;

import com.hulk.dryad.manage.framework.knife4j.Knife4jProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置  launcher props
 *
 * @author hulk
 */
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties({LaunchProperties.class, Knife4jProperties.class})
public class LauncheAutoConfiguration {

	@Bean
	@ConditionalOnMissingBean
	public LaunchStartedEventListener  launchStartedEventListener(Knife4jProperties knife4jProperties){
		return  new LaunchStartedEventListener(knife4jProperties);

	}

}
